package com.longcai.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.longcai.bean.ApiResult;
import com.longcai.bean.PageHelper;
import com.longcai.entity.sys.SysUser;
import com.longcai.page.table.PageTableResponse;
import com.longcai.vo.SysUserVo;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author ZJ
 * @since 2019-03-16
 */
public interface SysUserService extends IService<SysUser> {

    SysUser getUser(String username);

    PageTableResponse sysUserlistPage(SysUser sysUser, PageHelper pageHelper);

    ApiResult<SysUser> getSysUserById(Long id);

    SysUser updateSysUser(SysUserVo sysUserVo);

    SysUser saveSysUser(SysUserVo sysUserVo);

    ApiResult<SysUser> updatePassword(SysUser sysUse,String newPassword);
}
